from django.contrib import admin
from django.urls import path
from App import views as App_view
from Many2Many import views as many2many_view

urlpatterns = [
    # 一对多
    # 增加数据
    path('App/add/', App_view.add_user),

    # 删除数据
    path('App/delete/', App_view.del_user),

    # 修改数据
    path('App/update/', App_view.update_user),

    # 查询数据
    path('App/select/', App_view.select_user),

    # 多对多
    # 增加数据
    path('many2many/add/', many2many_view.add),

    # 删除数据
    path('many2many/delete/', many2many_view.delete),

    # 修改数据
    path('many2many/update/', many2many_view.update),

    # 查询数据
    path('many2many/select/', many2many_view.select),

    path('admin/', admin.site.urls),
]
